package com.github.shiqiyue.app.modules.dbms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.shiqiyue.app.api.sapi.controller.dbms.req.DatabaseHistoryPageReq;
import com.github.shiqiyue.app.modules.dbms.entity.DatabaseHistory;

/**
 * <p>
 * 数据库-历史记录 服务类
 * </p>
 *
 * @author wenyao.wu
 * @since 2019-08-06
 */
public interface IDatabaseHistoryService extends IService<DatabaseHistory> {

    /***
     * 添加历史记录
     * @param databaseId
     * @param remark
     * @param type
     * @param operatorId
     */
    public void addHistory(Long databaseId, String remark, DatabaseHistory.Type type, Long operatorId);

    /***
     * 历史记录-分页请求
     * @param databaseHistoryPageReq
     * @return
     */
    IPage<DatabaseHistory> page(DatabaseHistoryPageReq databaseHistoryPageReq);
}
